<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-bean" prefix="bean" %>
<%@ taglib uri="/struts-html" prefix="html" %>
<%@ taglib uri="/struts-logic" prefix="logic" %>
<html>
<head>
<title>相片信息页面</title>
</head>
<script type="text/javascript" src="/js/prototype-1.5.1.2.js" charset= "UTF-8"></script>
<script language="javascript">


//上传相片
function upload(){
document.all.method.value="add";
document.forms[0].submit();
document.all.method.value="";
}
//处理提交信息
function next(){
   window.open("/com/struts/web/user/register/regfinish.do","_parent");
   }
  
</script>
<body>
<html:form action="/com/struts/web/user/register/reguserpicture" method="post" enctype="multipart/form-data">
<html:hidden property="method"/>
 <table>
 <tr>
 <td><img src="<bean:write name='com_struts_web_user_register_registerPictureForm' property='pictureUrl'/>"/>
 </td>
 </tr>
 <tr>
 <td>
 <html:file property="picture"></html:file>
 </td>
 </tr>
 <tr>
 <td>
 <input type="button" style="cursor:hand" onclick="upload()" value="上传照片"/>
 </td>
 </tr>
 <tr>
 <td>
 <input type="button" value="下一步" style="cursor:hand" onclick="next()"/>
 </td>
 </tr>
 </table>
</html:form>

</body>
</html>
